﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace OnlineEducation.Data.Entities
{
    public class AttendanceLog : EntityBase
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [Display(Name = "课程Id")]
        [Required]
        public int CourseId { get; set; }

        [Display(Name = "学生Id")]
        public int StudentId { get; set; }

        [Display(Name = "是否出勤")]
        [Required]
        public bool IsAttance { get; set; }

        [Display(Name = "签到时间")]
        public DateTime AttanceTime { get; set; }
    }
}
